<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<canvas id="canvas" style="border: 1px solid red;"></canvas>
		<script type="text/javascript">
			var canvas = document.getElementById('canvas')
			var cxt = canvas.getContext('2d')
			canvas.width = 550
			canvas.height = 400
			cxt.strokeStyle = 'red'
			cxt.setLineDash([10,5])
			cxt.strokeRect(50,50,80,80)
		</script>
	</body>
</html>
